class Hamburger(object):
    # 初始化
    def __init__(self):
        self.vegetable = 0  # 蔬菜数量
        self.meat = 0  # 肉数量
        self.bread = 2  # 面包数量

    # 加蔬菜
    def add_vegetable(self):
        self.vegetable += 1
        print("加蔬菜")

    # 减蔬菜
    def del_vegetable(self):
        self.vegetable -= 1

    # 加肉
    def add_meat(self):
        self.meat += 1
        print("加肉")

    # 减肉
    def del_meat(self):
        self.meat -= 1

    def show(self):
        print("汉堡的面包数量 %s 蔬菜数量%s,肉数量%s" % (self.bread, self.vegetable, self.meat))


class milkHamburger(Hamburger):
    def __init__(self):
        super().__init__()
        self.milk = 0

    def add_milk(self):
        self.milk += 1
        print("加奶油")

    def show(self):
        print("汉堡的面包数量 %s 蔬菜数量%s,肉数量%s,奶油%s" % (self.bread, self.vegetable, self.meat, self.milk))


milkHamburger = milkHamburger()
milkHamburger.add_vegetable()
milkHamburger.add_meat()
milkHamburger.add_milk()
milkHamburger.add_vegetable()
milkHamburger.show()
